<@page.html title="会员资料录入">
<script type="text/javascript" src="${_appPath!}/js/cal.js"></script>
<div style="width:600px;">

  <form id="fm_input" method="post" action="_edit" onsubmit="return post(this);">
    <div class="kbox">
      <table class="input w4">
        <tr>
          <th width="85">会员编号</th>
          <td width="160"><input type="hidden" name="memberCode" value="${member.memberCode!}">${member.memberCode!}</td>
          <th width="85">性别</th>
          <td width="160"><select name="gender"><#if gender??><#list gender as t><option value="${t.id}"<#if member.gender?? && member.gender=t.id>selected</#if>>${t.name}</option></#list></#if></select></td>
        </tr>
        <tr>
          <th>中文姓名</th>
          <td><input type="text" name="chName" value="${member.chName!}"></td>
          <th>英文姓名</th>
          <td><input type="text" name="enName" value="${member.enName!}"></td>
        </tr>
        <tr>
          <th>证件号</th>
          <td colspan="3"><select name="idType" req="证件类型"><#if idType??><#list idType as t><option value="${t.id}"<#if member.idType?? && member.idType=t.id>selected</#if>>${t.id} - ${t.name}</option></#list></#if></select>
            <input type="text" name="idNumber" value="${member.idNumber!}" req="证件号" style="width:240px;"></td>
        </tr>
        <tr>
          <th>出生日期</th>
          <td><input type="text" name="birthday" value="${member.birthday!}" class="date" maxlength="10" onfocus="cal(this);"></td>
          <th>国籍</th>
          <td><input type="text" name="country" value="${member.country!}"></td>
        </tr>
        <tr>
          <th>手机</th>
          <td><input type="text" name="mobile" value="${member.mobile!}" req="手机号码"></td>
          <th>联系电话</th>
          <td><input type="text" name="phone" value="${member.phone!}"></td>
        </tr>
        <tr>
          <th>电子邮件</th>
          <td colspan="3"><input type="text" name="email" value="${member.email!}" class="w2"></td>
        </tr>
        <tr>
          <th>通讯地址</th>
          <td colspan="3"><input type="text" name="address" value="${member.address!}" class="w2"></td>
        </tr>
        <tr>
          <th>备注</th>
          <td colspan="3"><textarea name="note">${member.note!}</textarea></td>
        </tr>
      </table>
    </div>
    <div class="button"><input type="submit" value="保存"></div>
  </form>
</div>
</@page.html>
